<template>
  <div class="lix-hel__container">
    <div class="lix-help__title">
      {{ title }}
    </div>
    <div class="lix-help__content" v-html="content">
    </div>
  </div>
</template>

<script>
import { getHelpDetailApi } from '../../api';
export default {
  data() {
    return {
      title: '',
      content: '',
      detailId: null
    };
  },
  onLoad(option) {
    this.detailId = option.id;
    this.getContent(this.detailId);
  },
  methods: {
    getContent(id) {
      getHelpDetailApi(id)
        .then(res => {
          this.title = res.data.title;
          this.content = res.data.content;
        });
    }
  }
};
</script>

<style lang="scss">
.lix-hel__container {
  min-height: 100%;
  background-color: #fff;
  padding: 24px 18px 0 17px;

  & .lix-help__title {
    font-size: 19px;
    color: #3f3f3f;
    font-weight: 900;
  }

  & .lix-help__content {
    padding-top: 10px;
    line-height: 25px;
    font-size: 15px;
    color: #727272;
  }

  rich-text {
    width: 100%;
  }
}
</style>
